---------------------------------------------
-- Mob Skill Typhoon
-- Type: Physical (Blunt)
-- Description: Spins around dealing damage
-- to targets in an area of effect.
-- Utsusemi/Blink absorb: 2-4 shadows
-- Range: 10' radial
---------------------------------------------

require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");

---------------------------------------------

function OnMobSkillCheck(target,mob,skill)
	return 0;
end;

function OnMobWeaponSkill(target, mob, skill)
	local numhits = 4;
	local accmod = 1;
	local dmgmod = 1.2;
	local info = MobPhysicalMove(mob,target,skill,numhits,accmod,dmgmod,TP_NO_EFFECT);
	local dmg = MobFinalAdjustments(info.dmg,mob,skill,target,MOBSKILL_PHYSICAL,MOBPARAM_BLUNT,info.hitslanded);
	target:delHP(dmg);

	if (mob:getName() == "Faust") then
		if (mob:getExtraVar(1) == 0) then
			mob:useMobAbility(283);
			mob:setExtraVar(1); 
		else
			mob:setExtraVar(0);
		end
	end

	return dmg;
end;